<%@ page contentType="text/html; charset=utf-8"%>
<%
	String pageNum = request.getParameter("page");
	int iPage = 1;
	if(pageNum!=null){
		try{
			iPage = Integer.parseInt(pageNum);
		}catch(Exception e){}	}
%>
</br>
<a href="list.jsp?page=1">第一页</a>
<% if(iPage >1){ %>
   <a href="list.jsp?page=<%=iPage-1%>">前一页</a>
<% }%>
<% if(iPage < 10){%>
   <a href="list.jsp?page=<%=iPage+1%>">后一页</a>
 <% }%>
 <a href="list.jsp?page=10">最后一页</a>
 现在是第<%=iPage%>页